/*
 * Copyright TLR Team, Inc. All Rights Reserved.
 */
package com.tfb.dao;

import com.tlr.device.model.DeviceUserBind;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DeviceUserBindMapper {

    public List<DeviceUserBind> selectAllByDeviceID(String deviceId);

    public List<DeviceUserBind> selectAllByUserID(String userId);

    public List<DeviceUserBind> selectAllByUserIDAndDeviceID(@Param("userID") String userID, @Param("deviceID") String deviceID);

    public int deleteByUserIDAndDeviceID(@Param("userID") String userID, @Param("deviceID") String deviceID);

    public int insert(DeviceUserBind deviceUserBind);

    public int update(DeviceUserBind deviceUserBind);
}
